﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="SocialService.aspx.cs"
    Inherits="ExpertMIS.SocialService" %>

<%@ Register Src="UserControl/ucBulletinList.ascx" TagName="ucBulletinList" TagPrefix="uc1" %>
<%@ Register Src="UserControl/ucDomainAbstract.ascx" TagName="ucDomainAbstract" TagPrefix="uc2" %>
<%@ Register Src="UserControl/ucIndexOnline.ascx" TagName="ucIndexOnline" TagPrefix="uc3" %>
<%@ Register Src="UserControl/ucRecommendExperts.ascx" TagName="ucRecommendExperts"
    TagPrefix="uc4" %>
<%@ Register Src="UserControl/ucLastedQuestionList.ascx" TagName="ucLastedQuestionList"
    TagPrefix="uc5" %>
<%@ Register Src="UserControl/ucWebFooter.ascx" TagName="ucWebFooter" TagPrefix="uc6" %>
<%@ Register Src="UserControl/ucDomainList.ascx" TagName="ucDomainList" TagPrefix="uc7" %>
<%@ Register Src="UserControl/ucWebTitle.ascx" TagName="ucWebTitle" TagPrefix="uc8" %>
<%@ Register Src="UserControl/ucShortSearchBar.ascx" TagName="ucShortSearchBar" TagPrefix="uc3" %>
<%@ Register Src="UserControl/ucWebRoad.ascx" TagName="ucWebRoad" TagPrefix="uc9" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <base target="_blank" />
    <title>汇聚力量 服务社会</title>
    <link type="text/css" href="CSS/basic2.css" rel="Stylesheet" />
    <link type="text/css" href="CSS/div2.css" rel="Stylesheet" />
    <style type="text/css">
        .tab_deactive
        {
            background-image: url('imgs/social/deactive.gif');
            background-position: left top;
            border-bottom: #99bbdd 1px solid;            
        }
        .tab_deactive span
        {
            color: #0a679d;
        }
        .tab_active
        {
            background-image: url('imgs/social/active.gif');
            background-position: left top;    
            border-bottom: #99bbdd 0px solid;        
        }
        .tab_active span
        {
            color: #199fed;
        }
        .qtitle
        {
            width: 275px;
            display: inline;
            float: left;
        }
        .qdate
        {
            float: right;
            width: 50px;
            padding-right: 1px;
        }
        .qltitle
        {
            width: 360px;
            float: left;
        }
        .qldate
        {
            float: right;
            padding-right: 10px;
        }
        .ques_class li
        {
            height: 18px;
        }
        .ques_class_last li
        {
            height: 18px;
        }
    </style>

    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>

</head>
<body>

    <script type="text/javascript">
        var lastActiveObj = null;
        var lastList = null;

        $(document).ready(function() {
            lastActiveObj = $('#recommandExpert');
            lastList = $('#' + '<% Response.Write(ucRecommendExperts1.ClientID);  %>');
        });

        function doActive(obj, listid) {
            lastActiveObj.removeClass("tab_active");
            lastActiveObj.addClass("tab_deactive");
            lastActiveObj = $(obj);
            lastActiveObj.removeClass("tab_deactive");
            lastActiveObj.addClass("tab_active");

            lastList.hide();
            lastList = $('#' + listid);
            lastList.show();
        }
    </script>

    <div id="box">
        <uc8:ucWebTitle ID="ucWebTitle1" runat="server" />
        <div id="head">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="170"
                id="FlashID" title="汇聚人才 服务社会">
                <param name="movie" value="resources/head.swf" />
                <param name="quality" value="high" />
                <param name="wmode" value="transparent" />
                <param name="swfversion" value="6.0.65.0" />
                <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
                <param name="expressinstall" value="resources/expressInstall.swf" />
                <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="resources/head.swf" width="400"
                    height="170">
                    <!--<![endif]-->
                    <param name="quality" value="high" />
                    <param name="wmode" value="transparent" />
                    <param name="swfversion" value="6.0.65.0" />
                    <param name="expressinstall" value="resources/expressInstall.swf" />
                    <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
                    <div>
                        <h4>
                            此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
                        <p>
                            <a href="http://www.adobe.com/go/getflashplayer">
                                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                                    alt="获取 Adobe Flash Player" /></a></p>
                    </div>
                    <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>
        <div id="nav">
            <div id="nav_text">
                <uc9:ucWebRoad ID="ucWebRoad1" runat="server" />
            </div>
            <div id="nav_form">
                <uc3:ucShortSearchBar ID="ucShortSearchBar1" runat="server" />
            </div>
        </div>
        <div id="hot_hot">
            <div id="hot">
                <div id="hot_h">
                    <h3>
                        热<br />
                        门<br />
                        问<br />
                        题<br />
                    </h3>
                </div>
                <asp:Repeater runat="server" ID="repHotQuestions" OnItemDataBound="repHotQuestions_ItemDataBound">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <asp:Label runat="server" ID="lblDomains" Style="float: left; width: 50px;"></asp:Label>
                            <a href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>' style="float: left;">
                                <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),20) %>
                            </a>
                            <%--<span style="float: right;padding-right: 4px;"> <%# Eval("UpdateDate","{0:yy/M/d}") %></span>--%>
                        </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div id="hot_img">
                <table cellpadding="0" cellspacing="0" style="border: 0px">
                    <td>
                        <a id="anchorChatRoom" runat="server" visible="false"></a><a href="ExpertChat.html">
                            <img src="imgs/social/on_img.jpg" width="77" height="88" alt="在线答疑" style="border: 0px;" /></a>
                    </td>
                    <td style="width: 20px;">
                    </td>
                    <td>
                        <a href="Forums/PostQuestion.aspx">
                            <img src="imgs/social/ques_img.jpg" width="74" height="88" alt="我要提问" /></a>
                    </td>
                    <td style="width: 20px;">
                    </td>
                    <td>
                        <a href="Forums/SearchResult.aspx">
                            <img src="imgs/social/an_img.jpg" width="74" height="88" alt="我要回答" /></a>
                    </td>
                    <td style="width: 20px;">
                    </td>
                    <td>
                        <a href="Workships/Default.aspx?expert=true">
                            <img src="imgs/social/ex_img.jpg" width="80" height="88" alt="专家入口" /></a>
                    </td>
                </table>
            </div>
        </div>
        <div id="news">
            <div id="news_ban">
                <h1>
                    网站动态</h1>
                <h2>
                    <a href="Columns/BulletinList.aspx?catalog=2">更多>></a></h2>
            </div>
            <uc1:ucBulletinList ID="ucBulletinList1" runat="server" />
        </div>
        <div id="expert">
            <div style="height: 257px; width: 180px; float: left; border: #99bbdd 1px solid;">
                <div style="height: 27px; width: 180px;">
                    <div style="width: 89px; height: 27px; line-height: 24px; float: left; text-align: center;
                        vertical-align: middle; cursor: pointer; border-right: #99bbdd 1px solid;" class="tab_active"
                        id="recommandExpert" onclick="doActive(this,'<% Response.Write(ucRecommendExperts1.ClientID); %>');">
                        <span style="font-size: 12px; font-family: 宋体; font-weight: bold;">推荐专家</span>
                    </div>
                    <div style="width: 89px; height: 27px; line-height: 24px; float: left; text-align: center;
                        vertical-align: middle; cursor: pointer;" class="tab_deactive" id="introduceExpert"
                        onclick="doActive(this,'<% Response.Write(ucDomainList1.ClientID); %>');">
                        <span style="font-size: 12px; font-family: 宋体; font-weight: bold;">专家介绍</span>
                    </div>
                </div>
                <div style="height: 227px; text-align: left; overflow: hidden; padding-left: 5px;
                    padding-right: 5px; padding-bottom: 4px; padding-top: 2px;">
                    <uc4:ucRecommendExperts ID="ucRecommendExperts1" runat="server" />
                    <uc7:ucDomainList ID="ucDomainList1" runat="server" />
                </div>
            </div>
        </div>
        <div id="all_question">
            <div id="question_ban">
                <h1>
                    问题解答</h1>
                <h2>
                    <a href="Forums/DomainList.aspx">更多>></a></h2>
            </div>
            <div class="ques_class">
                <asp:Repeater runat="server" ID="repDomain1" OnItemDataBound="repDomain1_ItemDataBound">
                    <HeaderTemplate>
                        <h1>
                            <asp:Label runat="server" ID="lblTitle" Text="畜牲类"></asp:Label></h1>
                        <h2>
                            <asp:HyperLink runat="server" ID="hlMore"> 更多>></asp:HyperLink></h2>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a class="qtitle" href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                            <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),20) %>
                        </a><span class="qdate">
                            <%# Eval("UpdateDate","{0:yy/M/d}") %>
                        </span></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="ques_class">
                <asp:Repeater runat="server" ID="repDomain2" OnItemDataBound="repDomain1_ItemDataBound">
                    <HeaderTemplate>
                        <h1>
                            <asp:Label runat="server" ID="lblTitle" Text="畜牲类"></asp:Label></h1>
                        <h2>
                            <asp:HyperLink runat="server" ID="hlMore"> 更多>></asp:HyperLink></h2>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a class="qtitle" href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                            <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),20) %>
                        </a><span class="qdate">
                            <%# Eval("UpdateDate","{0:yy/M/d}") %>
                        </span></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="ques_class">
                <asp:Repeater runat="server" ID="repDomain3" OnItemDataBound="repDomain1_ItemDataBound">
                    <HeaderTemplate>
                        <h1>
                            <asp:Label runat="server" ID="lblTitle" Text="畜牲类"></asp:Label></h1>
                        <h2>
                            <asp:HyperLink runat="server" ID="hlMore">更多>></asp:HyperLink></h2>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a class="qtitle" href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                            <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),20) %>
                        </a><span class="qdate">
                            <%# Eval("UpdateDate","{0:yy/M/d}") %>
                        </span></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="ques_class">
                <asp:Repeater runat="server" ID="repDomain4" OnItemDataBound="repDomain1_ItemDataBound">
                    <HeaderTemplate>
                        <h1>
                            <asp:Label runat="server" ID="lblTitle" Text="畜牲类"></asp:Label></h1>
                        <h2>
                            <asp:HyperLink runat="server" ID="hlMore">更多>></asp:HyperLink></h2>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a class="qtitle" href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                            <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),20) %>
                        </a><span class="qdate">
                            <%# Eval("UpdateDate","{0:yy/M/d}") %>
                        </span></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="ques_class_last">
                <asp:Repeater runat="server" ID="repDomain5" OnItemDataBound="repDomain1_ItemDataBound">
                    <HeaderTemplate>
                        <h1>
                            <asp:Label runat="server" ID="lblTitle" Text="畜牲类"></asp:Label></h1>
                        <h2>
                            <asp:HyperLink runat="server" ID="hlMore">更多>></asp:HyperLink></h2>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a class="qltitle" href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                            <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),30) %>
                        </a><span class="qldate">
                            <%# Eval("UpdateDate","{0:yy/M/d}") %>
                        </span></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div id="q_img">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="258" height="162"
                    float="left" id="Object2" title="汇聚人才 服务社会">
                    <param name="movie" value="resources/all_img.swf" />
                    <param name="quality" value="high" />
                    <param name="wmode" value="transparent" />
                    <param name="swfversion" value="6.0.65.0" />
                    <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
                    <param name="expressinstall" value="resources/expressInstall.swf" />
                    <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="resources/head.swf" width="400"
                        height="170">
                        <!--<![endif]-->
                        <param name="quality" value="high" />
                        <param name="wmode" value="transparent" />
                        <param name="swfversion" value="6.0.65.0" />
                        <param name="expressinstall" value="resources/expressInstall.swf" />
                        <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
                        <div>
                            <h4>
                                此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
                            <p>
                                <a href="http://www.adobe.com/go/getflashplayer">
                                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                                        alt="获取 Adobe Flash Player" /></a></p>
                        </div>
                        <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
                <%--<img src="imgs/social/all_img.jpg" width="254" height="162" alt="相关图" />--%>
            </div>
        </div>
        <div id="ques_right">
            <div id="last_question">
                <div id="l_ban">
                    <h1>
                        最新提问</h1>
                </div>
                <asp:Repeater runat="server" ID="repNewQuestions" OnItemDataBound="repNewQuestions_ItemDataBound">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <asp:Label runat="server" ID="lblDomains" Style="float: left; width: 50px;"></asp:Label>
                            <a href='<%# "Forums/QuestionForm.aspx?oid=" + Eval("OID") %>'>
                                <%# ExpertMIS.Codes.Utility.CutLongText(Eval("Title"),12) %>
                                <%--<span><%# Eval("UpdateDate","{0:yy/M/d}") %></span>--%>
                            </a></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div id="on_inqu">
                <div id="l_ban">
                    <h1>
                        在线调查</h1>
                    <uc3:ucIndexOnline ID="ucIndexOnline1" runat="server" />
                </div>
            </div>
        </div>
        <uc6:ucWebFooter ID="ucWebFooter1" runat="server" />
    </div>
</body>
</html>
